<script setup>
defineProps({
  title: {
    type: String,
    required: true,
  },
  description: {
    type: String,
    default: "",
  },
});
</script>

<template>
  <div class="section-header">
    <h2 class="section-title">{{ title }}</h2>
    <div class="section-divider"></div>
    <p v-if="description" class="section-description">{{ description }}</p>
  </div>
</template>

<style scoped>
.section-header {
  margin-bottom: 40px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 30px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .section-header {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 24px;
  }

  .section-description {
    font-size: 14px;
  }

  .section-header {
    margin-bottom: 25px;
  }
}
</style> 